import { ViewEvent } from "../../Const";
import BaseModule from "../BaseModule";
import WinDialogView from "./WinDialogView";

export default class PopupModule extends BaseModule{
    private _win:WinDialogView=null
    init():void{
        this.message.on(ViewEvent.SHOW_WIN_DIALOG,()=>{
            if(this._win==null)this._win=new WinDialogView()
            this.top.addChild(this._win)
        })
    }
}